package com.example.dllo.my36kr.ui.activity.sonactivity;

import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.example.dllo.my36kr.R;
import com.example.dllo.my36kr.model.MineBean;
import com.example.dllo.my36kr.ui.activity.AbsBaseActivity;
import com.example.dllo.my36kr.ui.adapter.MineAdapter;

import java.util.ArrayList;

/**
 * 我是专业投资人
 * Created by CPC_272 on 16/8/23.
 */
public class GoodActivity extends AbsBaseActivity {
    private ListView ls_good;
    private ArrayList<MineBean>list_good;
    private ImageView back_good;
    @Override
    protected int setLayout() {
        return R.layout.activity_good;
    }

    @Override
    protected void initView() {
        ls_good = byView(R.id.ls_good);
        back_good = byView(R.id.back_good);
    }

    @Override
    protected void initData() {
      list_good=new ArrayList<>();
        MineAdapter adapter = new MineAdapter(this);
        list_good.add(new MineBean(""));
        list_good.add(new MineBean(R.mipmap.discovery_icon_insight,"36氪指数"));
        list_good.add(new MineBean(""));
        list_good.add(new MineBean(R.mipmap.discovery_icon_explosive1,"最具爆发力项目"));
        list_good.add(new MineBean(R.mipmap.discovery_icon_emergence1,"最新涌现项目"));
        adapter.setData(list_good);
        ls_good.setAdapter(adapter);
        back_good.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
